package com.ruoyi.playlist.domain;

import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 歌单对象 playlist
 * 
 * @author lin
 * @date 2025-03-04
 */
public class Playlist extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** ID */
    private Long id;

    /** 标题 */
    @Excel(name = "标题")
    private String title;

    /** 数量 */
    @Excel(name = "数量")
    private Long songCount;

    /** 总时长 */
    @Excel(name = "总时长")
    private Long totalDuration;

    private Integer popularity;
    public void setId(Long id) 
    {
        this.id = id;
    }

    public Long getId() 
    {
        return id;
    }
    public void setTitle(String title) 
    {
        this.title = title;
    }

    public String getTitle() 
    {
        return title;
    }
    public void setSongCount(Long songCount) 
    {
        this.songCount = songCount;
    }

    public Long getSongCount() 
    {
        return songCount;
    }
    public void setTotalDuration(Long totalDuration) 
    {
        this.totalDuration = totalDuration;
    }

    public Long getTotalDuration() 
    {
        return totalDuration;
    }

    public void setPopularity(Integer popularity)
    {
        this.popularity = popularity;
    }

    public Integer getPopularity()
    {
        return popularity;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("title", getTitle())
            .append("songCount", getSongCount())
            .append("totalDuration", getTotalDuration())
            .append("popularity", getPopularity())
            .toString();
    }
}
